package 集合.双列.Map.TreeMap;

import java.util.Comparator;
import java.util.TreeMap;
import java.util.TreeSet;

public class test {
    public static void main(String[] args) {
        TreeMap<Integer,String> tm=new TreeMap<>(new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o2-o1;
            }
        });
        tm.put(1,"001");
        tm.put(2,"002");
        tm.put(3,"003");
        tm.put(4,"004");
        System.out.println(tm);
        //正常打印就按照  键数字！  的升序
        //String就ascll表


    }
}
